package com.itheima.edu.info.manager.day15;

import java.io.IOException;
import java.net.*;

public class UdpZu {
    public static void main(String[] args) throws IOException {
        DatagramSocket ds=new DatagramSocket();
        byte[] bytes = "998".getBytes();
        InetAddress ip= InetAddress.getByName("224.0.66.66");
        DatagramPacket dp=new DatagramPacket(bytes,bytes.length,ip,1999);
        ds.send(dp);
        ds.close();
    }
}
